package com.letfox.ad.model;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.letfox.ad.enums.MaterialEnums;

public class ADUnitSchedule {
	private String planName;
	
	private BigDecimal adPlanBudgetDaily;
	
    private Date startTime;
	
    private Date endTime;
    
    private String adUnitPayType;

    private BigDecimal adUnitAmount;

    private BigDecimal adUnitQuotePrice;

    private String adUnitFlowType;

    private Integer adUnitFreq;
    
    private String adScheduleDay;

    private String adScheduleHour;

    private String adScheduleIsnot;
    
    public ADUnitSchedule(){
    	
    }

	public ADUnitSchedule(String planName, BigDecimal adPlanBudgetDaily,
			Date startTime, Date endTime, String adUnitPayType,
			BigDecimal adUnitAmount, BigDecimal adUnitQuotePrice,
			String adUnitFlowType, Integer adUnitFreq, String adScheduleDay,
			String adScheduleHour, String adScheduleIsnot) {
		super();
		this.planName = planName;
		this.adPlanBudgetDaily = adPlanBudgetDaily;
		this.startTime = startTime;
		this.endTime = endTime;
		this.adUnitPayType = adUnitPayType;
		this.adUnitAmount = adUnitAmount;
		this.adUnitQuotePrice = adUnitQuotePrice;
		this.adUnitFlowType = adUnitFlowType;
		this.adUnitFreq = adUnitFreq;
		this.adScheduleDay = adScheduleDay;
		this.adScheduleHour = adScheduleHour;
		this.adScheduleIsnot = adScheduleIsnot;
	}

	public String getPlanName() {
		return planName;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}

	public BigDecimal getAdPlanBudgetDaily() {
		return adPlanBudgetDaily;
	}

	public void setAdPlanBudgetDaily(BigDecimal adPlanBudgetDaily) {
		this.adPlanBudgetDaily = adPlanBudgetDaily;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss") 
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getAdUnitPayType() {
		return adUnitPayType;
	}

	public void setAdUnitPayType(String adUnitPayType) {
		this.adUnitPayType = adUnitPayType;
	}

	public BigDecimal getAdUnitAmount() {
		return adUnitAmount;
	}

	public void setAdUnitAmount(BigDecimal adUnitAmount) {
		this.adUnitAmount = adUnitAmount;
	}

	public BigDecimal getAdUnitQuotePrice() {
		return adUnitQuotePrice;
	}

	public void setAdUnitQuotePrice(BigDecimal adUnitQuotePrice) {
		this.adUnitQuotePrice = adUnitQuotePrice;
	}

	public String getAdUnitFlowType() {
		return adUnitFlowType;
	}

	public void setAdUnitFlowType(String adUnitFlowType) {
		this.adUnitFlowType = adUnitFlowType;
	}

	public Integer getAdUnitFreq() {
		return adUnitFreq;
	}

	public void setAdUnitFreq(Integer adUnitFreq) {
		this.adUnitFreq = adUnitFreq;
	}

	public String getAdScheduleDay() {
		return adScheduleDay;
	}

	public void setAdScheduleDay(String adScheduleDay) {
		this.adScheduleDay = adScheduleDay;
	}

	public String getAdScheduleHour() {
		return adScheduleHour;
	}

	public void setAdScheduleHour(String adScheduleHour) {
		this.adScheduleHour = adScheduleHour;
	}

	public String getAdScheduleIsnot() {
		return adScheduleIsnot;
	}

	public void setAdScheduleIsnot(String adScheduleIsnot) {
		this.adScheduleIsnot = adScheduleIsnot;
	}
	
	public static void main(String[] args) {
//		SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
//		System.out.println(sf.format(new Date()));
//		System.out.println(new Date());
	}
}
